ofList

fun ofList(defaultValue: Identifier, list: List<Identifier>): ValidatedIdentifier

Deprecated

Make sure your list is available at Validation time! (Typically at ModInitializer call or earlier)

Builds a ValidatedIdentifier based on an allowable list of values

This list should be available and complete at validation time

Return

ValidatedIdentifier wrapping the provided default and list

Author

fzzyhmstrs

Since

0.2.0

Parameters

defaultValue

the default value of the ValidatedIdentifier

list

the list whose entries are valid for this identifier


fun ofList(list: List<Identifier>): ValidatedIdentifier

Deprecated

Use only for validation of a list or map. Make sure your list is available at Validation time! (Typically at ModInitializer call or earlier)

Builds a ValidatedIdentifier based on an allowable list of values

This list should be available and complete at validation time

uses "minecraft:air" as the default value

Return

ValidatedIdentifier wrapping the provided list

Author

fzzyhmstrs

Since

0.2.0

Parameters

list

the list whose entries are valid for this identifier